package com.xy.xymall.ware.feign;

import com.xy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("xymall-product")
public interface ProductFeignService {

    /**
     *  可以让所有请求都经过网关，则需要将feign设置成xymall-gateway
     *  /api/product/skuinfo/info/{skuId}
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
